﻿using Microsoft.Extensions.DependencyInjection;
using SimpleORM.Infrastructure;
using SimpleORM.Model.DataBaseModel;
using SimpleORM.Repository.IRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleORM.Repository.Repository
{
    [Service(ServiceLifetime.Scoped)]
    public class ProductRepository : BaseRepository<Product>, IProductRepository
    {
        public List<Product> GetProduct()
        {
            var xx=Context.Queryable<Product>().ToList();
            return xx;
        }
    }
}
